package com.zh.juc.callback;

/**
 * @Author: zhanghuan
 * @date: 2022/10/9 18:56
 * @description: create it
 */
public class CallBackTest {

    public static void main(String[] args) {
        Mother1 mother1 = new Mother1(new Son1());
        mother1.sayBye();
        System.out.println("=======================");
        Mother2 mother2 = new Mother2(new Son2());
        mother2.sayBye();
    }
}
